package cn.zn.modules.pz.cur.entity;

import cn.zn.framework.common.abs.AbsOldMainEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tp_expense")
public class TpExpense extends AbsOldMainEntity {

    @TableField(value = "SPENDING_TYPE_")
    private Integer spendingType;

    @TableField(value = "EXPENSE_WAY_")
    private String expenseWay;

    @TableField(value = "IS_PAY_")
    @Builder.Default
    private Boolean isPay = false;

    @TableField(value = "MONEY_")
    private Double money;

    @TableField(value = "PAPER_NUM_")
    private String paperNum;

    @TableField(value = "PROJECT_CODE_")
    private String projectCode;

    @TableField(value = "REASON_")
    private String reason;

    @TableField(value = "TP_MAIN_ID_")
    private String tpMainId;

    @TableField(value = "CZJ_RESULT_")
    @Builder.Default
    private Integer czjResult = 0;

    @TableField(value = "PAY_USER_CODE_")
    private String payUserCode;

    @TableField(value = "IS_EXIST_APPLY_")
    @Builder.Default
    private Boolean isExistApply = false;

    @TableField(value = "IS_USE_PUBLIC_")
    @Builder.Default
    private Boolean isUsePublic = false;

    @TableField(value = "PAY_MONEY_")
    private Double payMoney;

    @TableField(value = "MONEY_TYPE_ISCASH_")
    @Builder.Default
    private Boolean moneyTypeIscash = false;

    @TableField(value = "IS_APPOINT_")
    private Boolean isAppoint = false;
}